#!/bin/bash

mkdir -p logs
go build


./raft-demo -name="raft1" -port=1200 -servers=1201,1202,1203,1204 > logs/raft1.txt &
./raft-demo -name="raft2" -port=1201 -servers=1200,1202,1203,1204 > logs/raft2.txt &
./raft-demo -name="raft3" -port=1202 -servers=1200,1201,1203,1204 > logs/raft3.txt &
./raft-demo -name="raft4" -port=1203 -servers=1200,1201,1202,1204 > logs/raft4.txt &
./raft-demo -name="raft5" -port=1204 -servers=1200,1201,1202,1203 > logs/raft5.txt &

